import { defineStore } from 'pinia'
import { ref } from 'vue'
const cityStore = defineStore("cityStore", () => {
    const city = ref({
        cityId: undefined,
        name: "",
        pinyin: "",
        isHot: undefined
    })
    const setCity = function(data: any){
        city.value = data;
    }
    return {
        city,
        setCity
    }
})

export default cityStore;